import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class OrderInvokeHandler implements InvocationHandler {
    private Object target;

    public OrderInvokeHandler(Object target) {
        this.target = target;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("Proxy：前置预处理...");
        method.invoke(target, args);
        System.out.println("Proxy：后置处理...");
        return null;
    }
}
